#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int A, B;
    cin >> A >> B;
    cout << pow(A, B) << endl;
    return 0;
}